home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-10-13 | 5.4 KB | 156 lines | [TEXT/MPS ] |
- ; Version: 2.76
- ; Created: Wednesday, September 20, 1989 at 3:33:59 PM
- ;
- ; File: ROMEqu.a
- ;
- ; Assembler Interface to the Macintosh Libraries
- ; Copyright Apple Computer, Inc. 1986-1988
- ; All Rights Reserved
- ;
- ; Description : This file contains the CONST definitions used by the
- ; Slot Manager and Declaration ROM's
- ;
- ;------------------------------------------------------------------------
-
-
- ; Constants
-
- ; Misc.
- defaultTO EQU 100
- ;=====================================================================
- ;Format-Header
- ;=====================================================================
- appleFormat EQU 1 ;Format of Declaration Data (IEEE will assign real value)
- romRevision EQU 1 ;First ROM revision.
- romRevRange EQU 9 ;Revision of Declaration Data Format [1..9]
- testPattern EQU 1519594439 ;FHeader long word test pattern
- ;=====================================================================
- ;sExec constants
- ;=====================================================================
- sExec2 EQU 2 ;Revision of header {For sExec}.
- ;=====================================================================
- ;sExec constants
- ;=====================================================================
- sCPU68000 EQU 1 ;CPU type = 68000
- sCPU68020 EQU 2 ;CPU type = 68020
- sCPU68030 EQU 3 ;CPU type = 68030
-
- ;=====================================================================
- ;sDRVR directory constants
- ;=====================================================================
- sMacOS68000 EQU 1 ;Mac OS, CPU type = 68000
- sMacOS68020 EQU 2 ;Mac OS, CPU type = 68020
- sMacOS68030 EQU 3 ;Mac OS, CPU type = 68030
-
-
- ;=====================================================================
- ;sResource types
- ;=====================================================================
- ;<Category>
- catBoard EQU 1
- catTest EQU 2
- catDisplay EQU 3
- catNetwork EQU 4
-
- ;<Type>
- typBoard EQU 0
- typApple EQU 1
- typVideo EQU 1
- typEtherNet EQU 1
-
- ;Driver Interface : <id.SW>
- drSwApple EQU 1
-
- ;Driver Interface : <id.SW><id.WH>
- drHwTFB EQU 1
- drHw3Com EQU 1
- drHwBSC EQU 3
-
-
-
- ;=====================================================================
- ;Declaration ROM Id's
- ;=====================================================================
- ;---------------------------------------------------------------------
- ; Misc
- ;---------------------------------------------------------------------
- endOfList EQU 255 ;End of list
-
-
- ;---------------------------------------------------------------------
- ; sResource List. Category: All
- ;---------------------------------------------------------------------
- ;The following Id's are common to all sResources.
- sRsrcType EQU 1 ;Type of sResource
- sRsrcName EQU 2 ;Name of sResource
- sRsrcIcon EQU 3 ;Icon
- sRsrcDrvrDir EQU 4 ;Driver directory
- sRsrcLoadRec EQU 5 ;Load record
- sRsrcBootRec EQU 6 ;sBoot record
- sRsrcFlags EQU 7 ;sResource Flags
- sRsrcHWDevId EQU 8 ;Hardware Device Id
- minorBaseOS EQU 10 ;Offset to base of sResource in minor space.
- minorLength EQU 11
- majorBaseOS EQU 12 ;Offset to base of sResource in Major space
- majorLength EQU 13
- sRsrcTest EQU 14 ; sBlock diagnostic code
- sRsrcCIcon EQU 15 ; CQD color icon
- sRsrcIc18 EQU 16 ; 'icl8' 8-bit color icon data
- sRsrcIc14 EQU 17 ; 'icl4' 4-bit color icon data
- sGammaDir EQU 64 ; spID for gamma directory
- sRsrcVidNames EQU 65 ; spID for video name directory
-
- ;---------------------------------------------------------------------
- ; sResource List. Category: Board
- ;---------------------------------------------------------------------
- ;The following Id's are common to all Board sResources.
- boardId EQU 32 ;Board Id
- pRAMInitData EQU 33 ;sPRAM init data
- primaryInit EQU 34 ;Primary init record
- timeOutConst EQU 35 ;Time Out constant.
- vendorInfo EQU 36 ;Vendor information List {See Vendor List, below}
- boardFlags EQU 37 ;Board Flags
- secondaryInit EQU 38 ;Secondary init record
-
- ;---------------------------------------------------------------------
- ;Vendor List
- ;---------------------------------------------------------------------
- ;The following Id's are associated with the VendorInfo id
- vendorId EQU 1 ;Vendor Id
- serialNum EQU 2 ;Serial number
- revLevel EQU 3 ;Revision level
- partNum EQU 4 ;Part number
- date EQU 5 ; Last revision date of the card
-
-
- ;---------------------------------------------------------------------
- ; sResource List. Category_Type: Test_One
- ;---------------------------------------------------------------------
- ;The following Id's are common to all Test_One_x sResources.
- testByte EQU 32 ;Test byte.
- testWord EQU 33 ;Test Word.
- testLong EQU 34 ;Test Long.
- testString EQU 35 ;Test String.
-
-
-
- ;*************************************************************
- ;Macros
- ;*************************************************************
- ;=============================================================
- ; Offset List Entry
- ;=============================================================
- MACRO
- OSLstEntry &Id,&Offset
- DC.L (&Id<<24) ++ ((&Offset-*) ** $00FFFFFF)
- ENDM
-
-
- ;=============================================================
- ; Data List Entry
- ;=============================================================
- MACRO
- DatLstEntry &Id,&Data
- DC.L (&Id<<24)+&Data
- ENDM
-